package fun._6742.service;

import com.baomidou.mybatisplus.extension.service.IService;
import fun._6742.model.dataobject.ProductDO;
import fun._6742.model.dataobject.ProductOrderItemDO;
import fun._6742.model.valueobject.OrderItemVO;
import fun._6742.request.ConfirmOrderRequest;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LiuQ
 * @since 2022-09-22
 */
public interface ProductOrderItemService extends IService<ProductOrderItemDO> {
    void createOrderItem(Long orderId, ConfirmOrderRequest confirmOrderRequest, List<ProductDO> productDOList);

    List<OrderItemVO> listAllItems(long id);
}
